//
//  BaseApi.h
//  Main
//
//  Created by wangbaoping on 2022/4/14.
//

#import <Foundation/Foundation.h>
#import "YTKRequest.h"
#import "ResponseModel.h"
#import <NSObject+YYModel.h>

NS_ASSUME_NONNULL_BEGIN



@protocol ApiDalegate

-(void)onApiFailed:(ResponseModel*)model;

-(void)onApiSuccess:(id)model;

@end

@interface BaseApi : YTKRequest

@property (nonatomic, weak,nullable) id <ApiDalegate>apiDalegate;

-(void)startReqeust;

@end


NS_ASSUME_NONNULL_END






